import request from '@/util/request'
import globalConfig from '@/config'

export function getUsersignGet(query) {
	return request({
	    url: '/user/v1/usersign/',
	    method: 'GET',
      params: query
	})
}
export function getUsersignPost(query) {
	return request({
	    url: '/user/v1/usersign/',
	    method: 'post',
      data: query
	})
}

export function getGoodsList(query) {
	return request({
	    url: '/indent/v1/getgoodsinfo/',
	    method: 'get',
      params: query
	})
}

// 签到记录
export function getJifenInfo(query) {
	console.log(query.isNext)
	var myParams = {
		uid: query.uid
	}
	if(query.isNext){
		myParams = null;
	}
	return request({
			baseURL: '',
	    url: query.isNext?query.isNext:globalConfig.requireUrl+'indent/v1/getjifeninfo/',
	    method: 'get',
      params: myParams
	})
}
